import request from "@/utils/request.js";

// 获取消息列表
export const getMessageList = (data) => {
	return request.get("app-api/blind/notify-message/getNotifyMessageList", data);
}

// 标记已读
export const oneKeyClearNotifyMessage = (data) => {
	return request.put("app-api/blind/notify-message/oneKeyClearNotifyMessage", data);
}

// 新增会话记录
export function ConversationCreate(data) {
  return request.post(`app-api/blind/session-record/create`, data)
}

// 新增聊天记录
export function MemMessageCreate(data) {
	return request.post("app-api/blind/member-message/createMemberMessage", data);
}

// 获得消息未读
export const unreadInformation = async data => {
  return await request.get(`app-api/blind/notify-message/unreadInformation`, data)
}